* Figure 4(a) and (b): ZOPA by exposure to violence in (a) Israelis and (b) Palestinians 

* Measurement: "Do you or any of your relatives, friends or acquaintances have been a victim of an incident of violence related to the conflict with the Palestinians?"

capture drop P_uvalue256 
gen P_uvalue256 = _bARa*a + _bARb*b +  _bARc*c + _bARd*d + _bARe*e + _bARf*f +  _bARg*g + _bARh*h   /*we dont have palestinian violence data*/
gen I_uvalue256_died = _bHE_died_a*a + _bHE_died_b*b + _bHE_died_c*c + _bHE_died_d*d + _bHE_died_e*e + _bHE_died_f*f +  _bHE_died_g*g + _bHE_died_h*h
gen I_uvalue256_knows = _bHE_knows_a*a + _bHE_knows_b*b +  _bHE_knows_c*c + _bHE_knows_d*d + _bHE_knows_e*e + _bHE_knows_f*f +  _bHE_knows_g*g + _bHE_knows_h*h
gen I_uvalue256_noone = _bHE_noone_a*a + _bHE_noone_b*b +  _bHE_noone_c*c + _bHE_noone_d*d + _bHE_noone_e*e + _bHE_noone_f*f +  _bHE_noone_g*g + _bHE_noone_h*h
*gen I_uvalue256_acquaintance = _bHE_acquaintance_a*a + _bHE_noone_b*b +  _bHE_noone_c*c + _bHE_noone_d*d + _bHE_noone_e*e + _bHE_noone_f*f +  _bHE_noone_g*g + _bHE_noone_h*h
*gen I_uvalue256_close = _bHE_noone_a*a + _bHE_noone_b*b +  _bHE_noone_c*c + _bHE_noone_d*d + _bHE_noone_e*e + _bHE_noone_f*f +  _bHE_noone_g*g + _bHE_noone_h*h

* Fig. 4. ZOPA by exposure to violence among (a) Israelis 
* Plot the entire bargaining space
twoway ///
	(scatter P_uvalue256 I_uvalue256_knows ,   msize(small) msymbol(O) mcolor(black)  ) ///
	(scatter P_uvalue256 I_uvalue256_noone ,   msize(small) msymbol(Oh) mcolor(black)   ) ///
, ///
xline(0, lpattern(-) lc(gray)) ///
yline(0, lpattern(-) lc(gray)) ///
yt("Palestinians `Acceptability'") ///
xt("Israelis `Acceptability'")  ///
note(" " "", size(vsmall)) ///
legend(pos(7) ring(0) bplacement(swest) col(1) region(lcolor(none)) size(2) lab(1 "Knows a relative, friend or acquaintance" "victim of an incident of violence related to the conflict") lab(2 "Does not know anyone")  lab(4 ""))  ///
plegend(off) graphregion(fcolor(white))  
graph display, ysize(1) xsize(1)

count if (P_uvalue256>0 & I_uvalue256_noone>0) 
count if (P_uvalue256>0 & I_uvalue256_knows>0)

